<template>
  <div class="home-background">
    <!--      头部-->
    <div class="search-header">
      <div class="back"><i class="el-icon-arrow-left back-icon"></i></div>
      <div class="search-box">
        <i class="el-icon-search top-icon"></i>
      </div>
    </div>
    <div class="choose-type">
      <div class="type">活动</div>
      <div class="type">用户</div>
      <div class="type">帖子</div>
      <div class="type">小组</div>
      <div class="type">展馆</div>
    </div>
    <!--      活动-->
    <div class="search-act">
      <searchact></searchact>
      <searchact></searchact>
      <searchact></searchact>
      <searchact></searchact>
    </div>
  </div>
</template>


<script>
import searchact from "../../../components/search/search-act";

    export default {
        name: "search-act",
      components:{
          searchact
      }
    }
</script>

<style scoped>
  .home-background{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
  }
  .search-header{
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    /*box-shadow: 0px 2px 1px rgba(215,215,215,.15);*/
  }
  .back{
    width: 40px;
    margin-left: 10px;
    margin-top: 5px;
    text-align: center;
  }
  .back-icon{
    color: #7f7f7f;
    font-size: 26px;
    /*margin-left: 7px;*/
    font-weight: bold;
  }
  .search-box{
    display: inline-block;
    flex: 1;
    background-color: #F2F2F2;
    border-radius: 20px;
    height: 35px;
    margin-top: 7px;
    margin-right: 10px;
  }
  .top-icon{
    color: #7f7f7f;
    font-size: 26px;
    margin-left: 7px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  .choose-type{
    display: flex;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    box-shadow: 0px 2px 1px rgba(215,215,215,.15);
  }
  .type{
    flex: 1;
    text-align: center;
  }
  .search-act{
    width: 100%;
    height: auto;
  }
</style>
